/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xiongda.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 分类Entity
 * @author 缪琼
 * @version 2017-11-29
 */
public class XCategory extends DataEntity<XCategory> {
	
	private static final long serialVersionUID = 1L;
	private String parentIds;		// 子类别
	private XUser xUser;		// 用户id
	private String name;		// 类别名称
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	private Integer type;		// 类型(1.博客2.相册)
	private String remark;		// 描述
	// 扩展
	private String parentName;// 父类名
	
	public XCategory() {
		super();
	}

	public XCategory(String id){
		super(id);
	}

	@ExcelField(title="子类别", align=2, sort=1)
	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}
	
	@ExcelField(title="用户id", align=2, sort=2)
	public XUser getXUser() {
		return xUser;
	}

	public void setXUser(XUser xUser) {
		this.xUser = xUser;
	}
	
	@ExcelField(title="类别名称", align=2, sort=3)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="创建时间", align=2, sort=4)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="更新时间", align=2, sort=5)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@ExcelField(title="类型(1.博客2.相册)", dictType="", align=2, sort=7)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	@ExcelField(title="描述", align=2, sort=8)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
}